package com.offcn.sellergoods.feign;

import com.offcn.entity.Result;
import com.offcn.sellergoods.group.GoodsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ld
 * @date 2021/9/17 15:59
 */
@FeignClient(name = "DYM-SELLERGOODS")
@RequestMapping("/goods")
public interface GoodsFeign {
    /***
     * 根据ID查询Goods数据
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    Result<GoodsEntity> findById(@PathVariable Long id);
}
